package com.buka.communicate.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.buka.communicate.R;
import com.buka.communicate.utils.SpringUtils;

import net.neiquan.applibrary.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/11/10 0010.
 */

public class RegistActivity extends BaseActivity {
    @InjectView(R.id.qqLogin)
    FrameLayout qqLogin;
    @InjectView(R.id.wxLogin)
    FrameLayout wxLogin;
    @InjectView(R.id.sinaLogin)
    FrameLayout sinaLogin;
    @InjectView(R.id.phoneLogin)
    FrameLayout phoneLogin;
    @InjectView(R.id.userProtecl)
    TextView userProtecl;

    @Override
    public int getRootViewId() {
        return R.layout.activity_regist;
    }

    @Override
    public void setViews() {

    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.qqLogin, R.id.wxLogin, R.id.sinaLogin, R.id.phoneLogin, R.id.userProtecl})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.qqLogin:
                SpringUtils.springAnim(qqLogin);
                startActivity(new Intent(RegistActivity.this, InfoCompleteActivity.class));
                break;
            case R.id.wxLogin:
                SpringUtils.springAnim(wxLogin);
                startActivity(new Intent(RegistActivity.this, InfoCompleteActivity.class));
                break;
            case R.id.sinaLogin:
                SpringUtils.springAnim(sinaLogin);
                startActivity(new Intent(RegistActivity.this, InfoCompleteActivity.class));
                break;
            case R.id.phoneLogin:
                SpringUtils.springAnim(phoneLogin);
                startActivity(new Intent(RegistActivity.this, InfoCompleteActivity.class));
                break;
            case R.id.userProtecl:
                break;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
    }
}
